package club.hicode.daydayup.monitor;

public class Bytes {  
    
    public static String substring(String src, int start_idx, int end_idx){  
    	byte[] b =  null;
		b = src.getBytes();
        String tgt = "";
        int len = 0 ;
        byte[] tt = new byte[end_idx - start_idx+1];
        for(int i=start_idx; i<=end_idx; i++){  
            tt[len] = b[i];
            len++;
        }
        tgt = new String(tt);
        return tgt;
    }
} 